Skip to content

Conversation

maelp
Copy link

@maelp maelp commented Aug 19, 2025

It's nicer to be able to add a zod schema.meta({ description: "This is my OpenAPI description"}) directly on the pgTable (or any table) fields, so this allows createSelectSchema, createInsertSchema and createUpdateSchema to get the description for their schema

Then when using zod-openapi, we get a nice description of the API, directly from the table description!

@maelp maelp changed the title feat: add a .meta to pgTable fields to add OpenAPI descriptions feat: add a zod .meta to pgTable fields to add OpenAPI descriptions Aug 19, 2025
@maelp maelp changed the title feat: add a zod .meta to pgTable fields to add OpenAPI descriptions feat(drizzle-zod): add a zod .meta to pgTable fields to add OpenAPI descriptions Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant